<template>
  <div class="news">
    <div class="banner"></div>
    <!-- 面包屑导航 -->
    <breadcrumb></breadcrumb>
    <div class="news-box">
      <div class="nav">
        <h2 class="activeNav"><i class="iconfont icon-24gl-newspaper2"></i>热点新闻</h2>
        <h2><i class="iconfont icon-gonggao1"></i>最新公告</h2>
        <div class="triangle-up"></div>
      </div>
      <div class="news-cont">
        <ul>
          <li>
            <div class="date">
              <p>04/16</p>
              <span>2023</span>
            </div>
            <div class="box">
              <p>
                张吉福在我市调研文化遗产保护利用和文化事业产业发展工作
              </p>
            </div>
          </li>
          <li>
            <div class="date">
              <p>03/16</p>
              <span>2023</span>
            </div>
            <div class="box">
              <p>
                第二届大学生乡村振兴（阳泉）建筑（闲置空间）创意设计大赛颁奖仪式在清华大学举办
              </p>
            </div>
          </li>
          <li>
            <div class="date">
              <p>03/13</p>
              <span>2023</span>
            </div>
            <div class="box">
              <p>
                大宗旅游接待奖励政策激活旅游市场
              </p>
            </div>
          </li>
          <li>
            <div class="date">
              <p>02/16</p>
              <span>2023</span>
            </div>
            <div class="box">
              <p>
                我市乡村旅游再添“国”字号招牌
              </p>
            </div>
          </li>
          <li>
            <div class="date">
              <p>02/05</p>
              <span>2023</span>
            </div>
            <div class="box">
              <p>
                张吉福在我市调研文化遗产保护利用和文化事业产业发展工作
              </p>
            </div>
          </li>
          <li>
            <div class="date">
              <p>02/01</p>
              <span>2023</span>
            </div>
            <div class="box">
              <p>
                张吉福在我市调研文化遗产保护利用和文化事业产业发展工作
              </p>
            </div>
          </li>
          <li>
            <div class="date">
              <p>01/16</p>
              <span>2023</span>
            </div>
            <div class="box">
              <p>
                张吉福在我市调研文化遗产保护利用和文化事业产业发展工作
              </p>
            </div>
          </li>
        </ul>
        <div class="page-box">
          <p><span>上一页</span> <a>2</a> <span>上一页</span></p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style scoped>
/* 主体样式 */
.banner {
  width: 100%;
  height: 50vh;
  background: url(../assets/images/banner2.png) no-repeat;
  background-size: cover;
}
.news {
  background: #f5f5f5;
  box-shadow: 2px 2px 3px #eeeeee;
  overflow: hidden;
}
.news-box {
  display: flex;
  justify-content: space-between;
  max-width: 1180px;
  margin: 30px auto;
  padding: 0 5px;
}
.news-box .nav {
  position: relative;
  width: 17%;
  height: 250px;
  background: brown;
}
.news-box .nav h2 {
  width: 100%;
  line-height: 80px;
  text-align: center;
  color: #fff;
  cursor: pointer;
}
.news-box .nav .activeNav {
  color: #fff;
  background: #c03535;
}

.news-box .news-cont {
  width: 80%;
}
.news-box .news-cont > ul li {
  display: flex;
  justify-content: space-between;
  background: #fff;
  margin-bottom: 15px;
  padding: 10px;
  padding-left: 20px;
  box-shadow: 2px 2px 3px #eeeeee;
}
.news-box .news-cont > ul li .date {
  width: 10%;
  height: 70px;
  padding-top: 10px;
  text-align: center;
  background: #fff;
  box-shadow: 0px 0px 3px #adadad;
  color: #666;
}
.news-box .news-cont > ul li .date p {
  display: block;
  width: 100%;
  font-size: 18px;
}
.news-box .news-cont > ul li .date span {
  display: block;
  width: 100%;
  font-size: 14px;
}
.news-box .news-cont > ul li .box {
  width: 90%;
  padding-left: 20px;
}
.news-box .news-cont > ul li .box p {
  width: 100%;
  font-size: 17px;
  line-height: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-box .news-cont > ul li:hover {
  border-right: 3px solid #c03535;
}
.news-box .news-cont > ul li:hover .date {
  color: #f5f5f5;
  background-color: #c03535;
}
.news-box .news-cont .page-box {
  width: 100%;
  padding: 15px 0;
  background: #fff;
  box-shadow: 2px 2px 3px #eeeeee;
  text-align: center;
}
.news-box .news-cont .page-box p span {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
}
.news-box .news-cont .page-box p a {
  display: inline-block;
  border: 1px dashed #e0e0e0;
  padding: 2px 5px;
  margin: 0 25px;
}
.iconfont {
  font-weight: normal;
  padding-right: 5px;
}

/* 移动端样式 */
@media screen and (max-width: 767px) {
  .banner {
    display: none;
  }
  .news-box {
    padding-top: 10px;
    display: initial;
  }
  .news-box .nav {
    margin: 10px auto;
    width: 95%;
    height: 10vw;
  }
  .news-box .nav h2 {
    display: inline-block;
    width: auto;
    padding: 0 5vw;
    height: 10vw;
    line-height: 10vw;
    font-size: 12rem;
  }
  .news-box .news-cont {
    margin: 0 auto;
    width: 95%;
  }
  .news-box .news-cont > ul li .date {
    height: 8vw;
  }
  .news-box .news-cont > ul li .date p {
    font-size: 8rem;
    line-height: 2vw;
  }
  .news-box .news-cont > ul li .date span {
    font-size: 8rem;
  }
  .news-box .news-cont > ul li .box p {
    line-height: 8vw;
    font-size: 10rem;
  }
}
</style>